import qs from "qs";

export function getBuyCount() {
    return new Promise(resolve => {
        axios.post("/buy/getBuyCount").then(rs => {
            resolve(rs.data);
        })
    })
}

export function getBuys(form) {
    return new Promise(resolve => {
        axios.post("/buy/getBuys", qs.stringify(form)).then(rs => {
            resolve(rs.data);
        })
    })
}

